/*
 * FaceCat图形通讯框架
 * 著作权编号:2015SR229355+2020SR0266727
 * 上海卷卷猫信息技术有限公司
 */

using System;
using System.Collections.Generic;
using System.Text;

namespace FaceCat {
    /// <summary>
    /// 套接字监听
    /// </summary>
    public interface FCSocketListener {
        /// <summary>
        /// 数据回调
        /// </summary>
        /// <param name="socketID">套接字ID</param>
        /// <param name="localSID">本地ID</param>
        /// <param name="str">数据</param>
        /// <param name="len">长度</param>
        void callBack(int socketID, int localSID, byte[] str, int len);
        /// <summary>
        /// 日志回调
        /// </summary>
        /// <param name="socketID">套接字ID</param>
        /// <param name="localSID">本地ID</param>
        /// <param name="state">状态</param>
        /// <param name="log">日志u</param>
        void writeLog(int socketID, int localSID, int state, String log);
    }
}
